﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoveNote.Database.Entities
{
    /// <summary>
    /// 工作计划表
    /// </summary>
    [Table(nameof(WorkEntity))]
    public class WorkEntity : EntityBase
    {
        private int userId = 0;
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId
        {
            get { return userId; }
            set { SetProperty(ref userId, value); }
        }

        private string title = string.Empty;
        /// <summary>
        /// 工作标题 
        /// </summary>
        public string Title
        {
            get { return title; }
            set { SetProperty(ref title, value); }
        }

        private string content = string.Empty;
        /// <summary>
        /// 工作内容
        /// </summary>
        public string Content
        {
            get { return content; }
            set { SetProperty(ref content, value); }
        }

        private DateTime? startDate = null;
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartDate
        {
            get { return startDate; }
            set { SetProperty(ref startDate, value);}
        }

        private DateTime? endDate = null;
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndDate
        {
            get { return endDate; }
            set { SetProperty(ref endDate, value); }
        }

        private int complete = 0;
        /// <summary>
        /// 0表示未完成，1表示已成功
        /// </summary>
        public int Complete
        {
            get { return complete; }
            set { SetProperty(ref complete, value);}
        }

        private DateTime? completeDate = null;
        /// <summary>
        /// 完成日期
        /// </summary>
        public DateTime? CompleteDate
        {
            get { return completeDate; }
            set { SetProperty(ref completeDate, value); }
        }
    }
}
